package com.yy.param;

import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author lyy
 * @date 2021/12/09
 */
@Data
public class FormInfoParam {
    @NotNull(message = "formInfoId 不能为空")
    private Integer formInfoId;
    @NotNull(message = "title 不能为空")
    private String title;
    @Valid
    @NotNull(message = "headList 不能为空")
    private List<FormHeadParam> headList;
    @Valid
    @NotNull(message = "contentList 不能为空")
    private List<FormContentParam> contentList;
}
